#include "requirement_associate_with_task_detail_view.h"
#include "sqlite_manager.h"
#include "easylogging++.h"

RequirementAssociateWithTaskDetailView::RequirementAssociateWithTaskDetailView()
{

}

bool RequirementAssociateWithTaskDetailView::selectByRequirementUuid(
        QString requirementUuid,
        QList<QString>fields,
        QList<QVariantList> &data)
{
    SqliteManager sm;
    bool ret = sm.selectData("requirement_associate_with_task_detail", fields,
    {{
         "requirement_uuid", requirementUuid
     }}, data);
    if (!ret) {
        LOG(ERROR) << "select data failed, error info: " << sm.lastError().toStdString();
    }

    return ret;
}
